package ALDITS;

import java.awt.Graphics;

public abstract class MapObject {

	protected int x; //current x,y location
	protected int y;
	
	public abstract void draw(Graphics g);
	public abstract String toStateMsg();
	public abstract String toString();
        public void update(){
            return;
        }
        public boolean inRange(MapObject o,int r){
            return r>=Map.distanceFormula(new int[]{x,y}, new int[]{o.x,o.y});
        }
        public boolean collision(int xer, int yer){return false;}
}
